﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.JonJack.Models.Tabels
{
    public class Book
    {
        /// <summary>
        /// 图书Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 书名
        /// </summary>
        public string BookName { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author {  get; set; }
        /// <summary>
        /// 书号
        /// </summary>
        public string ISBN {  get; set; }
        /// <summary>
        /// 出版社
        /// </summary>
        public string ? Pubblish { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public double Price { get; set; }
        /// <summary>
        /// 库存量
        /// </summary>
        public int Inventory { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public string ? BookClass { get; set; }
        /// <summary>
        /// 书架号
        /// </summary>
        public string ? BookShelfNumber {  get; set; }
        /// <summary>
        /// 是否上架
        /// </summary>
        public bool isOnShell { get; set; } = true;

        /// <summary>
        /// 该书的借书记录
        /// </summary>
        public List<BorrowRecord>? BorrowRecords { get; set; }
        /// <summary>
        /// 用户的读书历史
        /// </summary>
        public List<BookHistory>? BookHistorys { get; set; }
    }
}
